<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <div class="layui-logo">GINI开发后台</div>
    <!-- 头部区域（可配合layui已有的水平导航） -->
    <ul class="layui-nav layui-layout-left">
      <li class="layui-nav-item">
<!--         <a href="javascript:;">+设置</a> -->
      </li>
    </ul>
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item"><a onclick="layui.scene.show('game/main')">刷新</a></li>
      <li class="layui-nav-item"><a href="/main/selectNew">工作台</a></li>
      <li class="layui-nav-item">
        <a href="javascript:;"><%=role.name%>[<%=role.lv%>级]</a>
        <dl class="layui-nav-child">
          <dd><a href="">切换角色</a></dd>
        </dl>        

      </li>
      <li class="layui-nav-item"><a href="/logout/">退了</a></li>
    </ul>
  </div>

  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <% let dev_apis=['os','debug']%>



      <button id="GameApiLabel">----------1 游戏接口------------</button>
      <ul class="layui-nav layui-nav-tree"  lay-filter="test" lay-shrink="all" id="GameApi">
          <% for(let k in apis) {%>
          <% if(dev_apis.indexOf(apis[k].name)==-1){%>
          <li class="layui-nav-item" >
            <a href="javascript:;"><%=apis[k].name%></a>
            <dl class="layui-nav-child">
              <% for(let m of apis[k].rows) { %>
              <dd><a api="<%=m.id%>" href="javascript:;"><%=m.name%></a></dd>
              <% } %>
            </dl>
          </li>
          <%}%>
          <%}%>
      </ul>
   
    <br>
    <button id="DebugApiLabel">----------2 调试接口------------</button>
    <ul class="layui-nav layui-nav-tree"  lay-filter="test" lay-shrink="all" id="DebugApi">


          <% for(let k in apis) {%>
          <% if(dev_apis.indexOf(apis[k].name)!=-1){%>
          <li class="layui-nav-item" >
            <a href="javascript:;"><%=apis[k].name%></a>
            <dl class="layui-nav-child">
              <% for(let m of apis[k].rows) { %>
              <dd><a api="<%=m.id%>" href="javascript:;"><%=m.name%></a></dd>
              <% } %>
            </dl>
          </li>
          <%}%>
          <%}%>
           </ul>
      



    </div>
  </div>

  <div class="layui-body">
  <div class="layui-tab" lay-filter="tab1" lay-allowClose="true">
  <ul class="layui-tab-title">
  <li class="layui-this">欢迎</li>
  </ul>
  <div class="layui-tab-content">
  <div class="layui-tab-item layui-show">welcome</div>
  </div>
  </div>
  </div>

  <div class="layui-footer">
    <!-- 底部固定区域 -->

  </div>
</div>
